package com.zjgxzh.dialogservice.service.impl;

import com.zjgxzh.dialogservice.mapper.DialogMapper;
import com.zjgxzh.dialogservice.pojo.Dialog;
import com.zjgxzh.dialogservice.service.DialogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DialogServiceImpl implements DialogService {

    @Autowired
    DialogMapper dialogMapper;

    public List<Dialog> findDialogByThreadId(String threadId){
        return dialogMapper.findDialogByThreadId(threadId);
    }

    public void addDialog(Dialog dialog) {
        dialogMapper.addDialog(dialog);
    }
}
